﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace ZhimeiSoft.Framework.Client.Control.DateTimeGrid
{
    /// <summary>
    /// 获取控件信息接口
    /// </summary>
    interface IDateTimeView
    {
        /// <summary>
        /// 获取当前日期
        /// </summary>
        /// <returns>返回当前控件日期</returns>
        DateTime GetDateTime();
        /// <summary>
        /// 设置控件日期
        /// </summary>
        /// <param name="dateTime">设置当前控件的日期</param>
        void SetDateTime(DateTime dateTime);
        /// <summary>
        /// 获取内容说明的ID
        /// </summary>
        /// <returns>返回ID</returns>
        int GetItemID();
        /// <summary>
        /// 根据ID删除内容
        /// </summary>
        /// <param name="valueID">内容说明的ID</param>
        void DelItem(int indexID);
        /// <summary>
        /// 初始化时间
        /// </summary>
        void InitDate(DateTime dtInit);
        /// <summary>
        /// 设置当前有效时间的控件的颜色
        /// </summary>
        /// <param name="bEffective"></param>
        void SetEffectiveColor(bool bEffective);
        /// <summary>
        /// 数据绑定
        /// </summary>
        /// <param name="dsData">绑定</param>
        void SetDataBind(DataSet dsData, String displayFieldKey, string valueFieldKey, string timeKey);
        /// <summary>
        /// 获取当前数据
        /// </summary>
        /// <returns></returns>
        DataRow GetCurrDataRow();
        /// <summary>
        /// 获取当前数据
        /// </summary>
        /// <returns></returns>
        object GetCurrValue();
        
    }
}
